package com.yeswater.multithread.chapter1.test1_1;

/**
 * author : yeswater
 * date : 2023/10/18
 *
 * B类中打印的名称还是 main ,说明和 main 名称没关系
 */

public class Test2 {
    public static void main(String[] args) {
        B.methodB();
    }

    static class B {
        public static void methodB() {
            System.out.println("B methodB : " + Thread.currentThread().getName()); // B methodB : main
        }
    }
}


